package com.itheima;

import jakarta.servlet.ServletContext;
import jakarta.servlet.ServletException;
import org.springframework.web.WebApplicationInitializer;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main implements WebApplicationInitializer {


    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {

        //每当web项目启动,就会自动调用该接口的onStartup
        System.out.println("Main.onStartup");

        //ioc容器的初始化
        //dispatcherServlet
    }
}